<%@ Page Title="Edit Project" Language="C#" MasterPageFile="~/Views/Shared/Admin.Master" AutoEventWireup="true" 
	Inherits="System.Web.Mvc.ViewPage<good1.ApplicationServices.Dto.ProjectDto>" %>
<%@ Import Namespace="good1.Web.Controllers"%>

<asp:Content ID="Content1" ContentPlaceHolderID="headContentPlaceHolder" runat="server">

<link href="<%= ResolveUrl("~") %>Content/Style/smoothness.datepick.css?v=1" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<%ResolveUrl("~/");%>/Scripts/jquery-1.3.2.js"></script>
<script type="text/javascript" src="<%ResolveUrl("~/");%>/Scripts/jquery.datepick.js"></script>
</asp:Content>

<asp:Content ContentPlaceHolderID="mainContentPlaceHolder" runat="server">
	<h2>Edit Project</h2>

	<% Html.RenderPartial("ProjectForm", ViewData.Model, ViewData); %>
	
	<br />
	<% using (Html.BeginForm<ProjectsController>(c => c.Delete(ViewData.Model.Project.Id))) { %>
                        <%= Html.AntiForgeryToken() %>
    				    <input type="submit" value="Delete" onclick="return confirm('Are you sure?');" />
                    <% } %>
                    

</asp:Content>
